<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>justify-content属性</title>
    <style>
        .main {
            width: 80%;
            height: 700px;
            margin: 200px auto;
            border: 1px solid pink;
            min-width: 400px;
            display: flex;
            flex-flow: row wrap;
            /* 多行垂直对齐方式 */
             /*align-content:center; 项目位于容器的中心 */
            /* align-content: flex-end; 项目位于容器的结尾 */
            /* align-content: flex-start; 项目位于容器开头 */
            /* align-content: space-around;项目位于各行之前、之间、之后都留有空白的容器内 */
            /* align-content: space-between; 项目位于各行之间留有空白的容器内 */
            /* align-content: stretch;  默认值。 项目被拉伸以适应容器 前提子元素不能有高度*/
        }
        .main div {
            width: 300px;
            height: 200px;
        }
        .main div:nth-child(1){
            background-color: red;
        }
        .main div:nth-child(2){
            background-color: pink;
        }
        .main div:nth-child(3){
            background-color: blue;
        }
        .main div:nth-child(4){
            background-color: orange;
        }
        .main div:nth-child(5){
            background-color: rosybrown;
        }
    </style>
</head>
<body>
    <div class="main">
        <div>1</div>
        <div>2</div>
        <div>3</div>
        <div>4</div>
        <div>5</div>
    </div>
</body>
</html>